import { Ilab, ILabApply, IStudentQuery } from "../RequestIDL/labType";
import createReq from "../request";
import { Method } from "../type";

export const labQuery = (data: Ilab) => {
  return createReq({ method: Method.GET, url: "/StudentApply", data });
};

export const labApply = (data: ILabApply) => {
  const config = {
    params: data,
  };
  return createReq({ method: Method.POST, url: "/StudentApply", data, config });
};

export const studentLabQuery = (data: IStudentQuery) => {
  return createReq({
    method: Method.GET,
    url: "/StudentApply/studentApply",
    data,
  });
};

export const editLabApply = (data?: ILabApply) => {
  return createReq({ method: Method.PUT, url: "/StudentApply", data });
};
